
var ROOT='http://www.youyiku-yishu.cn';
function t1(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content1">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img1" onclick="renewal(1,1)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang1"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,1)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input1"/>';
	    page += '</div>';   
	    page += '<div class="Input1">';
        page += '<div class="text text1" onclick="Version(1,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';     
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t2(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content2">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe2">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img2" onclick="renewal(1,2)" data="3">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang2"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b2-1.png" alt="" class="photoframe2-img" />';
        page += '<div class="photoframe3">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img3" onclick="renewal(2,3)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang3"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,7)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input7"/>';
	    page += '</div>';   
	    page += '<div class="Input7">';
        page += '<div class="text text7" onclick="Version(7,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t3(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content3">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe4">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img4" onclick="renewal(1,4)" data="-4.8">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                            page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                            page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang4"/>';
                            page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe5">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img5" onclick="renewal(2,5)" data="-4.8">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang5"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b3-2.png" alt="" class="content3-img"/>';
		page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,2)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input2"/>';
	    page += '</div>';   
	    page += '<div class="Input2">';
        page += '<div class="text text2" onclick="Version(2,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t4(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content4">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe6">';
        page += '<div class="album-old">';
        
        page += '<div class="upload-img img6" onclick="renewal(1,6)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang6"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe7">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img7" onclick="renewal(2,7)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang7"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe8">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img8" onclick="renewal(3,8)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang8"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe9">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img9" onclick="renewal(4,9)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang9"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page += '<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In2">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,3)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input3"/>';
	    page += '</div>';   
        page += '<div class="Input3">';
        page += '<div class="text text3 " onclick="Version(3,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t5(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content5">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe10">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img10" onclick="renewal(1,10)" data="-3">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang10"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe11">';
        page + '=<div class="album-old">';
        page += '<div class="upload-img img11" onclick="renewal(2,11)" data="5">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang11"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page + '=</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe12">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img12" onclick="renewal(3,12)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang12"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page +='</div>';
        page += '</div>';
        page += '</div>';
//      page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b5-2.png" alt="" class="content5-img"/>';
        page += '<div class="In In3">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,4)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入18个字" maxlength="18" value=""  class="input input4"/>';
	    page += '</div>';  
        page += '<div class="Input4">';
        page += '<div class="text text4" onclick="Version(4,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入18个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t6(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content6">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe13">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img13" onclick="renewal(1,13)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang13"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe14">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img14" onclick="renewal(2,14)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang14"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe15">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img15" onclick="renewal(3,15)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                           page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang15"/>';
                           page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In4">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,5)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入44个字" maxlength="44" value=""  class="input input5"/>';
	    page += '</div>';  
        page += '<div class="Input5">';
        page += '<div class="text text5" onclick="Version(5,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入44个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t7(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content7">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe16">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img16" onclick="renewal(1,16)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang16"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe17">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img17" onclick="renewal(2,17)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang17"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe18">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img18" onclick="renewal(3,18)" >';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==3){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang18"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe19">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img19" onclick="renewal(4,19)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==4){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang19"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b7-1.png" alt="" class="content7-img"/>';
        page += '<div class="In In5">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,6)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入33个字" maxlength="33" value=""  class="input input6"/>';
	    page += '</div>';  
        page += '<div class="Input6">';
        page += '<div class="text text6" onclick="Version(6,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
            else{
                page+=text;
            }
        }
        else{
            page+="最多输入33个字";
		}
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })

}
function t8(inpage){
  var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content8">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe20">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img20" onclick="renewal(1,20)" data="9">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang20"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
       page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe21">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img21" onclick="renewal(2,21)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==2){
                    if(img[i].genre==1){
                       page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang21"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""  class="mw0" id=""/>';
        }
       page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';    
        page += '<div class="In In5">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,8)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入36个字" maxlength="40" value=""  class="input input8"/>';
	    page += '</div>';  
        page += '<div class="Input8">';
        page += '<div class="text text8" onclick="Version(8,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }
            else{
                page+=text;
            }
        }
        else{
            page+="最多输入36个字";
		}
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })

}
function t9(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content9">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe22">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img22" onclick="renewal(1,22)" data="-5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang22"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                            if(img[i].transform!=null){
                                if(isedit==0){
                                   page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                                }else{
                                    page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                                }

                            }else{
                                if(isedit==0){
                                   page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                                }else{
                                    page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                                }

                            }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe23">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img23" onclick="renewal(2,23)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang23"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe24">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img24" onclick="renewal(3,24)" data="5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                           page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang24"/>';
                           page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In In4">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,9)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input9"/>';
	    page += '</div>';  
        page += '<div class="Input9">';
        page += '<div class="text text9" onclick="Version(9,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t10(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content10">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe25">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img25" onclick="renewal(1,25)" data="-6.5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang25"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe26">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img26" onclick="renewal(2,26)" data="3">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang26"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe27">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img27" onclick="renewal(3,27)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                           page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang27"/>';
                           page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b10-1.png" alt="" class="content10-img"/>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b10-1.png" alt="" class="content10-img1"/>';
        page += '<div class="In In4">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,10)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入24个字" maxlength="24" value=""  class="input input10"/>';
	    page += '</div>';  
        page += '<div class="Input10">';
        page += '<div class="text text10" onclick="Version(10,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }
        }
        else{
            page+="最多输入24个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t11(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content11">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img28" onclick="renewal(1,28)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang28"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,11)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入40个字" maxlength="40" value=""  class="input input11"/>';
	    page += '</div>';   
	    page += '<div class="Input11">';
        page += '<div class="text text11" onclick="Version(11,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入40个字";
        }
        page += '</div>';
        page += '</div>';     
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t12(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content12">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe29">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img29" onclick="renewal(1,29)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang29"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe30">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img30" onclick="renewal(2,30)" data="5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang30"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe31">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img31" onclick="renewal(3,31)" data="-4">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang31"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe32">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img32" onclick="renewal(4,32)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang32"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+'        " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b12-1.png" alt="" class="content12-img"/>';
        page += '<div class="In In2">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,12)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input12"/>';
	    page += '</div>';   
        page += '<div class="Input12">';
        page += '<div class="text text12 " onclick="Version(12,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t13(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content13">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe33">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img33" onclick="renewal(1,33)" data="5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang33"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe34">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img34" onclick="renewal(2,34)" data="-5">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang34"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe35">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img35" onclick="renewal(3,35)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang35"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe36">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img36" onclick="renewal(4,36)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang36"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
          page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b12-1.png" alt="" class="content12-img"/>';
        page += '<div class="In In2">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,13)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入32个字" maxlength="32" value=""  class="input input13"/>';
	    page += '</div>';   
        page += '<div class="Input13">';
        page += '<div class="text text13 " onclick="Version(13,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入32个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t14(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content14">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe photoframe37">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img37" onclick="renewal(1,37)" data="2">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==1){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang37"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page+='<div class="upload-div">';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe38">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img38" onclick="renewal(2,38)" data="-4">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==2){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang38"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page +='<div class="photoframe photoframe39">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img39" onclick="renewal(3,39)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==3){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang39"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="photoframe photoframe40">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img40" onclick="renewal(4,40)">';
        if(img){
            if(img.length>0){
                for (var i=0;i<img.length;i++){
                    if(img[i].direction==4){
                        if(img[i].genre==1){
                           page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang40"/>';
                        page+='</div>';
                        }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);                        
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                            page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                        }
                        }
                    }
                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg"" class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b14-1.png" alt="" class="content14-img"/>';
        page += '<div class="In In_14">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,14)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入31个字" maxlength="31" value=""  class="input input14"/>';
	    page += '</div>';   
        page += '<div class="Input14">';
        page += '<div class="text text14 " onclick="Version(14,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入31个字";
        }
        page += '</div>';
        page += '</div>';
        page += '<div class="In In_15">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(2,15)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入26个字" maxlength="26" value=""  class="input input15"/>';
	    page += '</div>';   
        page += '<div class="Input15">';
        page += '<div class="text text15 " onclick="Version(15,2)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text1;
            }

        }
        else{
            page+="最多输入26个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function t15(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="content15">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="upload-img img42" onclick="renewal(1,41)">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang41"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page +='<div class="upload-div"></div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,17)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入35个字" maxlength="35" value=""  class="input input16"/>';
	    page += '</div>';   
	    page += '<div class="Input1">';
        page += '<div class="text text17" onclick="Version(17,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>'
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入35个字";
        }
        page += '</div>';
         page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b15_1.png" alt="" class="content15-img"/>';
         page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/b5-1.png" alt="" class="content15-img1"/>';
        page += '</div>';     
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}





//插页模板
function Cha_1(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="iset1">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_2(){
		$('.Conter').html('');
        var page = "";
        page += '<div class="iset2">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
		page += '</div>';      
        $('.Conter').html(page);
}
function Cha_4(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="iset4">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="In">';
		page += '<div class="qu" onclick="qu()">';
		page += '取消';
		page += '</div>';
		page += '<div class="wan" onclick="Text(1,16)">';
		page += '完成';
		page += '</div>';
		page += '<input type="text" placeholder="最多输入200个字" maxlength="200" value=""  class="input input16"/>';
	    page += '</div>';   
        page += '<div class="Input16">';
        page += '<div class="text text16 " onclick="Version(16,1)">';
        if(text){
            if(text.toString().indexOf('pload')>0){
                page+='<div class="erWeiMa" data-url="'+text+'"></div>';
            }else{
                page+=text;
            }

        }
        else{
            page+="最多输入200个字";
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
function Cha_5(inpage){
   var pbId = sessionStorage.getItem("pbId");
        $.ajax({
		    type:"POST",
		    url:"http://www.youyiku-yishu.cn/WebApp/AppPhotoBooks/editPage",
		    data:{pbId:pbId,page:inpage},
		    dataType:"json",
		       beforeSend: function (XMLHttpRequest) {
		         		XMLHttpRequest.setRequestHeader("DEVICEINFO", "JxRaZezavm3HXM3d9pWnYiqqQC1SJbsU");
		       }
		  }).then(json=>{
        var img = json.photo;
        var text = json.text;
        var text1 = json.text1;
        $('.Conter').html('');
        var page = "";
        page += '<div class="iset5">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/delete1.png"/ class="delete" onclick="deletePage()">';
        page += '<div class="photoframe">';
        page += '<div class="album-old">';
        page += '<div class="renewal r41" onclick="renewal(1,41)">';
        page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/huantu.png"/>';
        page += '<br /><a>上传图片和视频</a>';
        page += '</div>';
        page += '<div class="upload-img img41">';
        if(img){
            for (var i=0;i<img.length;i++){
                if(img[i].direction==1){
                    if(img[i].genre==1){
                        page+='<div class="vedioToCode" data-url="'+img[i].img+'">';
                        page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/bofang.png" class="bofang41"/>';
                        page+='</div>';
                    }else{
                        var imgage1=img[i].img;
                        var flg='_thumb';
                        var img1=insert_flg(imgage1,flg,37);
                        var isedit=img[i].isedit;
                        isedit=Number(isedit);
                       var isedit=img[i].isedit;
                        isedit=Number(isedit);
                        // console.log(isedit);
                       if(img[i].transform!=null){
                           if(isedit==0){
                             page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }

	                   }else{
                           if(isedit==0){
                              page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class="appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id=""/>';
                           }else{
                               page+='<img src="'+ROOT+'/'+img1+'" onclick="photoedit('+img[i].direction+')"class=" appearance'+img[i].appearance+' targetObj_'+img[i].direction+' " id="" />';
                           }

	                     }
                    }

                }
            }
        }
        else{
            page += '<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/white.jpg""class="mw0" id=""/>';
        }
        page += '</div>';
        page += '</div>';
        page += '</div>';
        page += '</div>';
        $('.Conter').html(page);
        tobecode();
        toBecomeCode();
    })
}
//模板
function moban(){
	$('.MB').html('');
        var page = "";
		page+='<div class="m1">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M1.jpg" class="MB-img" onclick="mb(1,this)"/>';
		page+='</div>';
		page+='<div class="m2">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M2.jpg" class="MB-img" onclick="mb(2,this)"/>';
		page+='</div>';
		page+='<div class="m3">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M3.jpg" class="MB-img" onclick="mb(3,this)"/>';
		page+='</div>';
		page+='<div class="m4">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M4.jpg" class="MB-img" onclick="mb(4,this)"/>';
		page+='</div>';
		page+='<div class="m5">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M5.jpg" class="MB-img" onclick="mb(5,this)"/>';
		page+='</div>';
		page+='<div class="m6">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M6.jpg" class="MB-img" onclick="mb(6,this)"/>';
		page+='</div>';
		page+='<div class="m7">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M7.jpg"class="MB-img"/ onclick="mb(7,this)">';
		page+='</div>';
		page+='<div class="m8">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M8.jpg"class="MB-img"/ onclick="mb(8,this)">';
		page+='</div>';
		page+='<div class="m9">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M9.jpg"class="MB-img"/ onclick="mb(9,this)">';
		page+='</div>';
		page+='<div class="m10">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M10.jpg"class="MB-img"/ onclick="mb(10,this)">';
		page+='</div>';
		page+='<div class="m11">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M11.jpg"class="MB-img"/ onclick="mb(11,this)">';
		page+='</div>';
		page+='<div class="m12">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M12.jpg"class="MB-img"/ onclick="mb(12,this)">';
		page+='</div>';
		page+='<div class="m13">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M13.jpg"class="MB-img"/ onclick="mb(13,this)">';
		page+='</div>';
		page+='<div class="m14">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M14.jpg"class="MB-img"/ onclick="mb(14,this)">';
		page+='</div>';
		page+='<div class="m15">';
		page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M15.jpg"class="MB-img"/ onclick="mb(15,this)">';
		page+='</div>';
				 $('.MB').html(page);
}
//插页
function Chaye(){
	console.log(111);
	$('.Images1').html('');
    var page = "";
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/c1.jpg" class="PhotoImg1 PhotoImg" onclick="chooseinsets(1,2)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/c2.jpg" class="PhotoImg2 PhotoImg" onclick="chooseinsets(2,2)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/c3.jpg" class="PhotoImg2 PhotoImg" onclick="chooseinsets(0,3)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/c4.jpg" class="PhotoImg2 PhotoImg" onclick="chooseinsets(0,4)"/>';
    page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M1.jpg" class="MB-img ima_mb" onclick="chooseinsets(1,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M2.jpg" class="MB-img ima_mb" onclick="chooseinsets(2,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M3.jpg" class="MB-img ima_mb" onclick="chooseinsets(3,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M4.jpg" class="MB-img ima_mb" onclick="chooseinsets(4,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M5.jpg" class="MB-img ima_mb" onclick="chooseinsets(5,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M6.jpg" class="MB-img ima_mb" onclick="chooseinsets(6,1)"/>';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M7.jpg"class="MB-img ima_mb" onclick="chooseinsets(7,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M8.jpg"class="MB-img ima_mb" onclick="chooseinsets(8,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M9.jpg"class="MB-img ima_mb"onclick="chooseinsets(9,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M10.jpg"class="MB-img ima_mb" onclick="chooseinsets(10,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M11.jpg"class="MB-img ima_mb" onclick="chooseinsets(11,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M12.jpg"class="MB-img ima_mb" onclick="chooseinsets(12,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M13.jpg"class="MB-img ima_mb" onclick="chooseinsets(13,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M14.jpg"class="MB-img ima_mb" onclick="chooseinsets(14,1)">';
	page+='<img src="'+ROOT+'/Apps/WebApp/View/default/images/photoNewBook/parentOffspring/M15.jpg"class="MB-img ima_mb" onclick="chooseinsets(15,1)">';
	 $('.Images1').html(page);
}
$('.more').click(function(){
	$('.ima_mb').css('display','none');
	$('.PhotoImg').css('display','block');
})
$('.more_1').click(function(){
	$('.ima_mb').css('display','block');
	$('.PhotoImg').css('display','none');
})
